package com.settlement.system.model.entity.common;

import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.write.style.HeadFontStyle;
import com.alibaba.excel.annotation.write.style.HeadRowHeight;
import com.alibaba.excel.annotation.write.style.HeadStyle;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import jakarta.validation.constraints.NotNull;
import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * 爱库存-售后明细
 * @author Ximi
 * @since 2020-07-14
 */
@Data
@ExcelIgnoreUnannotated
@HeadStyle(fillBackgroundColor = 9,fillForegroundColor = 9)
@HeadRowHeight(value = 20)
@HeadFontStyle(fontHeightInPoints = 14)
public class TblAkcAfterSaleDetail extends BaseModel implements Serializable {


    /**
     * 序号
     */
    @ExcelProperty(value = "序号")
    @ApiModelProperty(value = "序号",required = true)
    @NotNull(message = "序号不能为空")
    private Integer serialNumber;

    /**
     * 活动ID
     */
    @ExcelProperty(value = "活动ID")
    @ApiModelProperty(value = "活动ID",required = true)
    @NotNull(message = "活动ID不能为空")
    private String actionId;

    /**
     * 店铺编码
     */
    @ExcelProperty(value = "店铺编码")
    @ApiModelProperty(value = "店铺编码",required = true)
    @NotNull(message = "店铺编码不能为空")
    private String shopNo;

    /**
     * 店铺名称
     */
    @ExcelProperty(value = "店铺名称")
    @ApiModelProperty(value = "店铺名称")
    private String shopName;

    /**
     * 日期
     */
    @ExcelProperty(value = "提现日期")
    @ApiModelProperty(value = "提现日期")
    @JsonFormat(pattern="yyyy/MM/dd HH:mm:ss",timezone = "GMT+8")
    private Date outDate;

    /**
     * 售后单号
     */
    @ExcelProperty(value = "售后单号")
    @ApiModelProperty(value = "售后单号",required = true)
    @NotNull(message = "售后单号不能为空")
    private String afterSaleNo;

    /**
     * 用户上传快递单号
     */
    @ExcelProperty(value = "用户上传快递单号")
    @ApiModelProperty(value = "用户上传快递单号")
    private String transportNo;

    /**
     * 用户上传快递公司
     */
    @ExcelProperty(value = "用户上传快递公司")
    @ApiModelProperty(value = "用户上传快递公司")
    private String transportCompany;

    /**
     * 条码
     */
    @ExcelProperty(value = "条码")
    @ApiModelProperty(value = "条码")
    private String barcode;

    /**
     * 活动名称
     */
    @ExcelProperty(value = "活动名称")
    @ApiModelProperty(value = "活动名称",required = true)
    @NotNull(message = "活动名称不能为空")
    private String actionName;

    /**
     * 发货单号
     */
    @ExcelProperty(value = "发货单号")
    @ApiModelProperty(value = "发货单号",required = true)
    @NotNull(message = "发货单号不能为空")
    private String sendGoodsNo;

    /**
     * 退货款
     */
    @ExcelProperty(value = "退货款")
    @ApiModelProperty(value = "退货款",required = true)
    @NotNull(message = "退货款不能为空")
    private BigDecimal backGoodsAmount;

    /**
     * 瑕疵补偿费
     */
    @ExcelProperty(value = "瑕疵补偿费")
    @ApiModelProperty(value = "瑕疵补偿费",required = true)
    @NotNull(message = "瑕疵补偿费不能为空")
    private BigDecimal componsationAmount;

    /**
     * 运费
     */
    @ExcelProperty(value = "运费")
    @ApiModelProperty(value = "运费",required = true)
    @NotNull(message = "运费不能为空")
    private BigDecimal transportAmount;

    /**
     * 售后原因
     */
    @ExcelProperty(value = "售后原因")
    @ApiModelProperty(value = "售后原因")
    private String afterSaleReason;

    /**
     * 责任方
     */
    @ExcelProperty(value = "责任方")
    @ApiModelProperty(value = "责任方")
    private String responsibleParty;

    /**
     * 机器人确认时间
     */
    @ExcelProperty(value = "机器人确认时间")
    @ApiModelProperty(value = "回款单价(单位:元)",hidden = true)
    private Date robotComfirmDate;

}
